package com.flower.admin.system.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.flower.admin.core.enums.StatusEnum;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * @author 小懒虫
 * @date 2018/8/14
 */
@Getter
@Setter
public class Role implements Serializable {
    private Long id;
    private String name;
    private String title;
    private String remark;
    private Date createDate;
    private Date updateDate;
    private User createBy;
    private User updateBy;
    private Byte status = StatusEnum.OK.getCode();

    @JsonIgnore
    private Set<User> users = new HashSet<>(0);

    private Set<Menu> menus = new HashSet<>(0);
}
